package com.cw.auth.domain.convert;

import com.cw.auth.domain.entity.AuthUserBO;
import com.cw.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserConvert {
    AuthUserConvert INSTANCE = Mappers.getMapper(AuthUserConvert.class);


    // 通过AuthUserBO转化为AuthUser
    AuthUser convertBoToEntity(AuthUserBO authUserBO);

    AuthUserBO convertEntityToBo(AuthUser authUser);

}
